<?php
declare(strict_types=1);
namespace SixShop\Lakala\Enum;

enum ReceiverStatusEnum:int
{
    case PENDING = 1;
    case SUBMITTING = 2;
    case VERIFIED = 3;
    case VERIFY_FAILED = 4;
    case BINDING = 5;
    case BOUND = 6;
    case BIND_FAILED = 7;

    public function toString(): string
    {
        return match ($this) {
            self::PENDING => '待审核',
            self::SUBMITTING => '提交中',
            self::VERIFIED => '验证通过',
            self::VERIFY_FAILED => '验证失败',
            self::BINDING => '绑定中',
            self::BOUND => '绑定成功',
            self::BIND_FAILED => '绑定失败',
            default => '未知状态',
        };
    }
}